using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Nekonya.Components.Interactive;
using UnityEngine;
using UnityEngine.Events;

namespace Nekonya.Components
{
    /// <summary>
    /// 可交互的被观察组件
    /// </summary>
    [DisallowMultipleComponent]
    public class InteractiveObservationComponent : Watchable
    {
        [Header("标题")]
        public string Title;
        [Header("描述")]
        public string Description;


        //public UnityEvent _DoAction = new UnityEvent();
        public Action DoAction { get; set; }

        public void Do()
        {
            DoAction?.Invoke();
        }
    }
}
